package com.tomorrowbbs.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 点赞记录对象 like_record
 * 
 * @author zjz
 * @date 2024-11-09
 */
@Data
public class LikeRecord
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long opId;

    /** 操作类型0:文章点赞 1:评论点赞 */
    private Integer opType;

    /** 主体ID */
    private String objectId;

    /** 用户ID */
    private String userId;

    private Date createTime;
    /** 主体作者ID */
    private String authorUserId;


    @Override
    public String toString() {
        return "LikeRecord{" +
                "opId=" + opId +
                ", opType=" + opType +
                ", objectId='" + objectId + '\'' +
                ", userId='" + userId + '\'' +
                ", createTime=" + createTime +
                ", authorUserId='" + authorUserId + '\'' +
                '}';
    }
}
